package com.wande.dataplatform.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.wande.common.mybatis.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 系统配置实体
 *
 * @author wande
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("dp_system_config")
public class SystemConfig extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 配置ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 配置键
     */
    private String configKey;

    /**
     * 配置值
     */
    private String configValue;

    /**
     * 配置类型: DORIS, DOLPHINSCHEDULER, FLINK, SYSTEM
     */
    private String configType;

    /**
     * 值类型: STRING, NUMBER, BOOLEAN, JSON
     */
    private String valueType;

    /**
     * 配置描述
     */
    private String description;

    /**
     * 是否加密: 0-否, 1-是
     */
    private Integer isEncrypted;

    /**
     * 是否必填: 0-否, 1-是
     */
    private Integer isRequired;

    /**
     * 默认值
     */
    private String defaultValue;

    /**
     * 验证规则
     */
    private String validationRule;

    /**
     * 显示顺序
     */
    private Integer displayOrder;

    /**
     * 状态: 0-禁用, 1-启用
     */
    private Integer status;
}
